/*
* coder: Dzlua
* email: 505544956@qq.com
* time : 2018-04-18 10:21
*/

#include "ui/ui.hpp"

#include <iostream>
using std::cout;
using std::wcout;
using std::endl;

template <typename T>
void print(const T& d) {
    cout << d << endl;
}
void print(const ui::wstring& d) {
    cout << ui::w2s(d) << endl;
}

void showline(const ui::string& d = ui::string()) {
    cout << "-----" << d << "-----" << endl;
}
void show(const ui::string& d) {
    cout << "str:" << d << endl;
}
void wshow(const ui::wstring& d) {
    cout << "wstr:" << ui::w2s(d) << endl;
}
void ushow(const ui::string& d) {
    cout << "ustr:" << ui::u2s(d) << endl;
}
#if defined(_UNICODE) || defined(UNICODE)
    #define tshow wshow
#else
    #define tshow show
#endif
